package com.appkubes.mall.restful.application.system.basic.service;

import com.appkubes.mall.core.entity.MallSystem;
import com.appkubes.mall.restful.application.system.basic.dao.SystemDao;
import com.appkubes.mall.restful.application.system.basic.model.PayResult;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class SystemService {

    @Autowired
    SystemDao systemDao;

    public MallSystem getCur() {
        return systemDao.getCurr();
    }

    public MallSystem getAliCur(String appKey) {
        return systemDao.getAliCur(appKey);
    }
    public MallSystem getSystemInfoByAppid(String appid) {
        return systemDao.getSystemInfoByAppid(appid);
    }
    public List<MallSystem> queryAll(String queryStr) {
        return systemDao.getList(queryStr);
    }

    public List<PayResult> getPayList(String appKey, String key) {
        return systemDao.getPayList(appKey, key);
    }
}